<template>
  <div>
    <div class="my-top">
      <img src="http://liufusong.top:8080/img/profile/bg.png" alt="背景图" />

      <div class="my-show">
        <div class="my-photo">
          <img src="http://liufusong.top:8080/img/profile/avatar.png" alt="" />
        </div>
        <div class="my-tex">
          <p>游客</p>
          <p>去登入</p>
        </div>
      </div>
    </div>
    <van-grid :column-num="3" :border="false">
      <van-grid-item icon="photo-o" text="我的收藏" />
      <van-grid-item icon="photo-o" text="我的出租" />
      <van-grid-item icon="photo-o" text="看房记录" />
      <van-grid-item icon="photo-o" text="成为房主" />
      <van-grid-item icon="photo-o" text="个人资料" />
      <van-grid-item icon="photo-o" text="联系我们" />
    </van-grid>
    <div class="my-buttom">
      <img src="http://liufusong.top:8080/img/profile/join.png" alt="" />
    </div>
  </div>
</template>

<script>
export default {
  name: 'my-page',
  data() {
    return {}
  },
  methods: {}
}
</script>

<style scoped lang="less">
.my-top {
  img {
    width: 100%;
  }
  position: relative;

  height: 300px;

  .back-pic {
    position: static;
    height: 191px;
    img {
      width: 100%;
    }
  }
  .my-show {
    position: absolute;
    top: 120px;
    left: 25px;
    padding: 0 20px;
    // padding-top: 30px;
    height: 165px;
    width: 320px;
    box-shadow: 5px 5px 5px #ccc;
    background-color: #fff;
    text-align: center;
    .my-photo {
      text-align: center;
      margin-left: 50%;
      width: 70px;
      height: 70px;
      border-radius: 50%;
      transform: translateX(-70px);
      position: relative;
      //   transform: translateY(-50%);
      border-radius: 50%;
      width: 70px;
      height: 70px;
      border: 5px solid #f5f5f5;
      display: inline-block;
      box-shadow: 0 2px 2px #bdbdbd;

      img {
        width: 60px;
        height: 60px;
        border-radius: 50%;
      }
    }
    .my-tex {
      p:first-child {
        margin: 8px;
        font-size: 14px;
      }
      p:last-child {
        height: 30px;
        width: 70px;
        font-size: 14px;
        margin: 0 auto;
        text-align: center;
        line-height: 30px;
        background-color: #21b97a;
        border-radius: 5px;
      }
    }
  }
}
.my-buttom {
  margin-top: 10px;
  padding: 0 20px;
  border-radius: 5px;
  img {
    width: 100%;
  }
}
</style>
